// RUN: json_to_flatbuffer %p/test_schema.fbs %s | flatbuffer_translate --tflite-flatbuffer-to-mlir -o - | FileCheck %s

// If input and output tensors don't have names, there shouldn't be an
// `tf.entry_function` attribute created.
// CHECK-NOT: tf.entry_function

{
  "version": 3,
  "operator_codes": [
    {
      "builtin_code": "CONV_2D"
    }
  ],
  "subgraphs": [
    {
      "tensors": [
        {
          "shape": [
            256,
            32,
            32,
            3
          ],
          "quantization": {
          }
        },
        {
          "shape": [
            16,
            3,
            3,
            3
          ],
          "quantization": {
          }
        },
        {
          "shape": [
            0
          ],
        },
        {
          "shape": [
            256,
            32,
            32,
            16
          ],
          "quantization": {
          }
        }
      ],
      "inputs": [
        0,
        1
      ],
      "outputs": [
        3
      ],
      "operators": [
        {
          "inputs": [
            0,
            1,
            -1
          ],
          "outputs": [
            3
          ],
          "builtin_options_type": "Conv2DOptions",
          "builtin_options": {
            "stride_w": 1,
            "stride_h": 1
          }
        }
      ],
      "name": "main"
    }
  ],
  "description": "MLIR Converted."
}
